package cn.stylefeng.guns.modular.business.frequency.ordertake.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import cn.stylefeng.guns.modular.business.frequency.ordersub.model.result.TakeOrderVO;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * tt_order_take
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_order_take")
public class OrderTake extends BaseEntity {

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 方式
     */
    @TableField("type")
    private Integer type;

    /**
     * 公司名称
     */
    @TableField("company")
    private String company;

    /**
     * 送车司机
     */
    @TableField("driver_name")
    private String driverName;

    /**
     * 送车人联系电话
     */
    @TableField("driver_phone")
    private String driverPhone;

    /**
     * 司机身份证号码
     */
    @TableField("driver_card_number")
    private String driverCardNumber;

    /**
     * 车牌号
     */
    @TableField("license_plate_number")
    private String licensePlateNumber;

    /**
     * 身份证号
     */
    @TableField("settlement_card_number")
    private String settlementCardNumber;

    /**
     * 结算人
     */
    @TableField("settlement_name")
    private String settlementName;

    /**
     * 结算人电话
     */
    @TableField("settlement_phone")
    private String settlementPhone;

    /**
     * 送车费用
     */
    @TableField("take_car_fee")
    private BigDecimal takeCarFee;

    /**
     * 结算方式
     */
    @TableField("settlement_type")
    private Integer settlementType;

    /**
     * companyID
     */
    @TableField("company_id")
    private Long companyId;

    /**
     * 供应商结算人ID
     */
    @TableField("settlement_id")
    private Long settlementId;

    /**
     * 供应商司机ID
     */
    @TableField("driver_id")
    private Long driverId;

    /**
     * 司机指派人
     */
    @TableField("assign_driver_user")
    private Long assignDriverUser;

    /**
     * 司机指派时间
     */
    @TableField("assign_driver_time")
    private Date assignDriverTime;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;

    @TableField(exist = false)
    private List<TakeOrderVO> takeOrderVOList;

}
